package net.zjitc.securityloginapijwt.utils;

import net.zjitc.securityloginapijwt.pojo.TUser;
import org.springframework.security.core.context.SecurityContextHolder;

/**
 * @author 罗翼侨
 * @date 2025/3/7 11:14
 */
public class LoginInfoUtil {
    public static TUser getCurrentLoginInfo() {
        return (TUser) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
    }
}
